White
/give @p warped_fungus_on_a_stick{display:{Name:'{"text":"Lightsaber","color":"white"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"White","color":"white"}']},HideFlags:6,Unbreakable:1b,CustomModelData:332,AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:6,Operation:0,UUID:[I;-1933093755,386157474,-1579002185,1417091017],Slot:"mainhand"}]}

Red
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"Lightsaber","color":"red"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"Red","color":"red"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:6,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,11985,165431,-23970]}],HideFlags:6,CustomModelData:503}

Green
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"Lightsaber","color":"green"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"Green","color":"green"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:6,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,11985,165431,-23970]}],HideFlags:6,CustomModelData:502}

Blue
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"Lightsaber","color":"aqua"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"Blue","color":"aqua"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:6,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,11985,165431,-23970]}],HideFlags:6,CustomModelData:501}

Cyan
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"Lightsaber","color":"dark_aqua"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"Cyan","color":"dark_aqua"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:6,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,11985,165431,-23970]}],HideFlags:6,CustomModelData:1221}

Purple
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"Lightsaber","color":"light_purple"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"Purple","color":"light_purple"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:6,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,11985,165431,-23970]}],HideFlags:6,CustomModelData:187}

Indigo
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"Lightsaber","color":"dark_blue"}',Lore:['{"text":"\\"An elegant weapon for a more civilized age\\""}','{"text":"Indigo","color":"dark_blue"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:6,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,11985,165431,-23970]}],HideFlags:6,CustomModelData:66}

The Darksaber
/give @p minecraft:warped_fungus_on_a_stick{Unbreakable:1b,display:{Name:'{"text":"The Darksaber","color":"white"}',Lore:['{"text":"\\"Legend tells that it was created over a thousand years ago by Tarre Vizsla, the first Mandalorian ever inducted into the Jedi Order.\\""}','{"text":"Unique","color":"gold"}']},AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:9,Slot:mainhand,Name:"generic.attack_damage",UUID:[I;-122115,19575,165431,-23970]}],HideFlags:6,CustomModelData:212}